package com.ruoyi.project.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 文章对象 cms_article
 * 
 * @author Su.Yuanlin
 * @date 2019-10-24
 */
public class Article extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 文章id */
	private Integer id;

	/** 内容 */
	@Excel(name = "内容")
	private String content;

	/** 是否显示 */
	@Excel(name = "是否显示")
	private Long isShow;

	/** 来源 */
	@Excel(name = "来源")
	private String sourse;

	/** 标题 */
	@Excel(name = "标题")
	private String title;

	/** 所在组 */
	@Excel(name = "所在组")
	private Long menuId;

	/** null */
	@Excel(name = "null")
	private Long isHeadline;

	/** 连接地址 */
	@Excel(name = "连接地址")
	private String url;

	/** 图片地址 */
	@Excel(name = "图片地址")
	private String imgSrc;

	/** 删 */
	@Excel(name = "删")
	private Long isAd;

	/**
	 * 文章主题id
	 */
	private Integer themeId;

	public Integer getThemeId() {
		return themeId;
	}

	public void setThemeId(Integer themeId) {
		this.themeId = themeId;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setIsShow(Long isShow) {
		this.isShow = isShow;
	}

	public Long getIsShow() {
		return isShow;
	}

	public void setSourse(String sourse) {
		this.sourse = sourse;
	}

	public String getSourse() {
		return sourse;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setIsHeadline(Long isHeadline) {
		this.isHeadline = isHeadline;
	}

	public Long getIsHeadline() {
		return isHeadline;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}

	public String getImgSrc() {
		return imgSrc;
	}

	public void setIsAd(Long isAd) {
		this.isAd = isAd;
	}

	public Long getIsAd() {
		return isAd;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("content", getContent()).append("isShow", getIsShow()).append("sourse", getSourse())
				.append("title", getTitle()).append("menuId", getMenuId()).append("isHeadline", getIsHeadline())
				.append("url", getUrl()).append("imgSrc", getImgSrc()).append("isAd", getIsAd())
				.append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("themeId", getThemeId())
				.append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).toString();
	}

	public Article(Integer id) {
		super();
		this.id = id;
	}

	public Article() {
		super();
	}

	public Article(Integer id, String content, Long isShow, String sourse, String title, Long menuId, Long isHeadline,
			String url, String imgSrc, Long isAd) {
		super();
		this.id = id;
		this.content = content;
		this.isShow = isShow;
		this.sourse = sourse;
		this.title = title;
		this.menuId = menuId;
		this.isHeadline = isHeadline;
		this.url = url;
		this.imgSrc = imgSrc;
		this.isAd = isAd;
	}
}
